package com.qijian.maindata.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.maindata.domain.Safety;
import com.qijian.maindata.domain.SafetyManage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

/**
 * 安全员对象
 *
 * @author qijian
 * @date 2022-10-11
 */

@Data
@ToString
public class SafetyVo extends Safety{
    @ApiModelProperty("培训次数")
    private Integer trainingRecords;

    @ApiModelProperty("检查次数")
    private Integer inspectRecord;

    @ApiModelProperty("重大隐患")
    private Integer majorHiddenDanger;

    @ApiModelProperty("培训通过率")
    private BigDecimal trainingPassRate;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户ID")
    private Long manageUserId;

    @ApiModelProperty(value = "用户名称")
    private String manageNickName;

    @ApiModelProperty(value = "部门Id")
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    List<SafetyManage> manageList;
}
